//
// File:   MyInterface.h
// Author: ben
//
// Created on October 18, 2008, 4:36 PM
//

#ifndef _MYINTERFACE_H
#define	_MYINTERFACE_H

#include <vector>
#include <string>
#include <iostream>
#include <fstream>
#include <math.h>
#include <sstream>

#include <QApplication>
#include <QFont>
#include <QPushButton>
#include <QWidget>
#include <QLabel>
#include <QtGui>
#include <QtPlugin>
//#include <Qt/q3listbox.h>

#include "MyGraphClass.h"
#include "MyVertexClass.h"


#define WIDTH_IMG 250
#define HEIGHT_IMG 188
#define SPACE_BETWEEN 15
#define SECOND_LINE 20
#define SPACE_BORDER 10
#define H_BUTTON 30
#define H_WIN 610
#define W_WIN 800
#define THE_K .94

#define HISTORY_IMG "img/history.png"

using namespace std;



class MyWidget : public QWidget {
	Q_OBJECT
		
public:
	MyWidget(QWidget *parent = 0);
	/*
	QLabel *labelImage0;
	QLabel *labelImage1;
	QLabel *labelImage2;
	QLabel *labelImage3;
	QLabel *labelImage4;
	QLabel *labelImage5;
	 */
	
	//void change();
	
	
private:

        int InitialiseHistory();
        int ReloadHistory(string top_name);
        list<string> thishistory_names;
	vector<string> thisImages;
	vector<int> thisImages_nodes;
	vector<QLabel*> thislabels;
	vector<QLabel*> thistexts;
	vector<QPushButton*> thisbuttons;
        vector<QLabel*> thishistory;
	//vector<QImage> thisQImages;
	void OnClick(int i);
	MyGraph *thisGraph;
	vector<int> thisNode;
        QComboBox *thiscombolearn;
        QPushButton *thissavew;
       // string thisimgpath;
private slots:
	
	void OnClick_0();
	void OnClick_1();
	void OnClick_2();
	void OnClick_3();
	void OnClick_4();
	void OnClick_5();
        void SaveWeights();
	
	//void OnClick();
	
	
};


#endif	/* _MYINTERFACE_H */


